package com.whh.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.whh.entity.BaseEntity;
import com.whh.entity.ResultEntity;
import com.whh.service.TypeService;

@RestController
@RequestMapping(value = "/type")
@CrossOrigin
public class TypeController {
	
	@Autowired
	TypeService service;
	
	@RequestMapping(value = "/search")
	public ResultEntity search(BaseEntity entity) {
		return service.search(entity);
	}
}
